You can change the priority of a failover rule by using the network interface failover change-priority command. When the priority of one failover rule is changed, the command automatically rearranges the priorities of other failover rules in the list as needed. For instance, in a list of four failover rules, if the rule with priority 4 is changed to priority 2, the command automatically changes the rule with priority 2 to priority 3 and the rule with priority 3 to priority 4.
If you want to insert a new failover rule at a specific priority in the list without creating it and then rearranging the priorities by using the network interface failover new and network interface failover change-priority commands, use the network interface failover insert command, as described in “Inserting a New Failover Rule into a List of Failover Rules”.
The following example changes the failover rule with priority 3 to priority 4. The failover rule is associated with a virtual interface named dataif2 on a node named node1a. The command automatically rearranges the list of failover rules so that the rule that previously held priority 4 now holds priority 3.
node::>network interface failover change-priority -server node1a -vif dataif2 -priority 3 -newpriority 4